<style type="text/css" media="all">

#menu h3 {
	font-size:15px; 
	font:Verdana, Geneva, sans-serif;
	color:#333;
	cursor:pointer;
	line-height:25px;
	padding-left:20px;
	margin:1px 0;
	background: #cad2dd url(mais.gif) 3px center no-repeat;
	border-left: 5px solid #7d97ad;
	}	
#menu  h3.corrente { 
	background:#cad2dd url(menos.gif) 3px center no-repeat;
	}	
#menu ul {
	list-style-type:none;
	margin:3px 0px;
	padding:0px;  
	text-align: left;          
	}
#menu li a {
	background: #ffffff url(seta.gif) no-repeat 98%;
	border-left: 5px solid #7d97ad;
	color: #333;
	text-decoration: none;
	margin-bottom:1px;
	padding: 8px 15px 3px 3px;
	display: block;
	}
#menu li a:hover {
	background: #dce3e9 url(seta.gif) no-repeat 98%;
	color: #999;
	border-left: 5px solid #cad2dd;
	}
* html #menu h3, * html #menu h3.corrente { 
	background-position: 8px center;
	}	
*:first-child+html #menu h3, 
*:first-child+html #menu  h3.corrente { 
	background-position: 8px center;
	}	
</style>


<div id="menu">
	
<?php
	extract($_GET);
	if(!isset($m))
		$m = 1;
	$not->sql = " SELECT * FROM
						submenu INNER JOIN grupos_permissoes_menu ON submenu.id = grupos_permissoes_menu.id_submenu	
							WHERE submenu.id_menu = $m and grupos_permissoes_menu.id_grupo = $GRUPO
								GROUP BY submenu.id 
									ORDER BY submenu.id ASC";
	$not->ler();
?>

	<ul>

<?php
	// GERA TAG LI
	while($not->ini()){

?>	
	
	  <li>
		  <a href="#" title="<?php print $not->ds_submenu ?>"
          onClick="carregaBusca('<?php print $not->ds_pagina ?>','telas',<?php $not->init != '' ? print $not->init."_init" : print ' undefined ' ?>);"> 
			  <abbr>
				  <font size="2" face="Arial, Helvetica, sans-serif">
				  <?php print $not->ds_submenu ?>
				  </font>
			  </abbr> 
		  </a> 
	  </li>

<?php
  }
?>
	</ul>